606 m Mega-tall BuildingΒΆ
See the original tcl file of the model in OpenSees models for a 606 m Mega-tall Building,
and a python file converted by opstool.pre.tcl2py() that you can download from here
https://ln5.sync.com/dl/9e3582d40/2s3k7ayf-e52anp3t-mjfa89vz-jc427xsb named MegatallBuilding.py.
[1]:
import time
import opstool as opst
from assets.MegatallBuilding import *
[2]:
start = time.time()
opst.post.save_model_data(odb_tag="megatall-building")
end = time.time()
print("Data Saving: Time elapsed: ", end - start, " s")
OPSTOOL :: Model data has been saved to _OPSTOOL_ODB/ModelData-megatall-building.nc!
Data Saving: Time elapsed: 4.087396144866943 s
[3]:
opst.vis.pyvista.set_plot_props(point_size=0, line_width=0.5, notebook=True)
start = time.time()
plotter = opst.vis.pyvista.plot_model(odb_tag="megatall-building")
plotter.show(jupyter_backend="jupyterlab")
# plotter.show()
end = time.time()
print("Pyvista-Based: Time elapsed: ", end - start, " s")
OPSTOOL :: Loading model data from _OPSTOOL_ODB/ModelData-megatall-building.nc ...
Pyvista-Based: Time elapsed: 0.7559823989868164 s
[4]:
opst.vis.plotly.set_plot_props(point_size=0, line_width=0.4)
start = time.time()
fig = opst.vis.plotly.plot_model(odb_tag="megatall-building", show_outline=False)
fig.show()
# plotter.show()
end = time.time()
print("Plotly-Based: Time elapsed: ", end - start, " s")
OPSTOOL :: Loading model data from _OPSTOOL_ODB/ModelData-megatall-building.nc ...
Data type cannot be displayed: application/vnd.plotly.v1+json
Plotly-Based: Time elapsed: 6.582398891448975 s